<?php
session_start();
include_once( 'config.php' );

$id = $_POST['id'];
$flight = $_POST['flight'];

$recordText = $id." ".$flight."\n";
$fp = fopen( RECORD_NAME , "a");
fwrite($fp, $recordText);
fclose($fp);

echo "记录成功！";
?>